export const rules = {
    pdtName: [
        { required: true, message: '请输入产品名称', trigger: 'blur' },
        { min: 2, max: 20, message: '用户名长度2-20位', trigger: 'blur' },
    ],
    pdtCode: [
        { required: true, message: '请输入产品编号', trigger: 'blur' },
        { min: 2, max: 20, message: '编码长度2-20位', trigger: 'blur' },
        {pattern:new RegExp(/^[0-9a-zA-Z]{2,}$/,'g'),message:"编码只允许包含字母与数字",trigger: 'blur' }
    ],
    ctgCode: [
        { required: true, message: '请选择产品类别', trigger: 'change' },
    ],
    protocol: [
        { required: true, message: '请选择所属协议', trigger: 'change' },
    ],
    radius: [
        { required: true, message: '请输入信标半径', trigger: 'blur' },
    ]
}